$OpenBSD: patch-client_Makefile_OpenBSD,v 1.1 2013/05/10 09:56:45 sthen Exp $
--- client/Makefile.OpenBSD.orig	Fri May 10 10:49:49 2013
+++ client/Makefile.OpenBSD	Fri May 10 10:49:49 2013
@@ -0,0 +1,22 @@
+INCLUDE = ../server/dhcp.h dhcpc.h common.h ../server/common_subr.h dhcpc_subr.h
+OBJ = dhcpc_subr.o flushroute.o getmac.o common_subr.o dhcpc.o
+
+COPTS = -DRETRY_FOREVER 
+LDFLAGS = -lkvm
+
+dhcpc: ${OBJ}
+	${CC} ${CFLAGS} ${COPTS} -o dhcpc ${OBJ} ${LDFLAGS}
+
+install: dhcpc
+	${INSTALL} -m 755 -s dhcpc ${SBIN}/dhcpc
+	cp dhcpc.8 ${MAN}/man8/dhcpc.8
+
+clean:
+	rm -f *~ *.o *core* dhcpc
+
+dhcpc.o:	dhcpc.c config.h ${INCLUDE}
+dhcpc_subr.o:	dhcpc_subr.c ${INCLUDE}
+common_subr.o:	../server/common_subr.c ../server/dhcp.h dhcpc.h common.h ../server/common_subr.h
+	${CC} ${CFLAGS} ${COPTS} -c ../server/common_subr.c
+getmac.o:	../server/getmac.c
+	${CC} ${CFLAGS} ${COPTS} -c ../server/getmac.c
